/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.txt.access.capability.finder;

import java.io.File;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;

/**
 *
 * @author seccia
 */
public class CapabilitySearchReturn {

    private String capabilityIssueDate;
    private File capabilityFile;
    private String capabilityID;

    public String getCapabilityIssueDate() {
        return capabilityIssueDate;
    }

    public XMLGregorianCalendar getCapabilityIssueDateToXmlGregorianCalendar() {
        try {
            DatatypeFactory factory = DatatypeFactory.newInstance();
            return factory.newXMLGregorianCalendar(this.capabilityIssueDate);
        } catch (DatatypeConfigurationException ex) {
            return null;
        }
    }

    public void setCapabilityIssueDate(String capabilityIssueDate) {
        this.capabilityIssueDate = capabilityIssueDate;
    }

    public String getCapabilityID() {
        return capabilityID;
    }

    public void setCapabilityID(String capabilityID) {
        this.capabilityID = capabilityID;
    }

    public File getCapabilityFile() {
        return capabilityFile;
    }

    public void setCapabilityFile(File capabilityFile) {
        this.capabilityFile = capabilityFile;
    }
}
